package com.ssfeng.youxia.listener;

import com.ssfeng.youxia.event.DemoEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * Created by liyuhang on 2020-08-21.
 */
@Component
public class DemoListener  implements ApplicationListener<DemoEvent> {

    @Override
    public void onApplicationEvent(DemoEvent event) {
        System.out.println("事件监听器:"+event.getMsg());
    }
}
